﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="BankTransfer.aspx.cs" Inherits="Plublic_BankTransfer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            color: #FFFFFF;
        }
        .style3
        {
            color: #FFFFFF;
            text-align: left;
        }
        .style4
        {
            width: 260px;
        }
        .style5
        {
            text-align: right;
            width: 110px;
        }
        .style6
        {
            text-align: right;
            width: 112px;
        }
        .style7
        {
            width: 259px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <form method="post" runat="server">
    <div id="tblTransf">
        <table style="width: 100%;" title="Transfer account information" align="center">
            <caption class="style3">
                Transfer account information :</caption>
            <tr>
                <td class="style6">
                    &nbsp; <span class="style1">Type Transaction</span>
                </td>
                <td class="style7">
                    <asp:DropDownList ID="ddlTransactionCategories" runat="server" Width="260px">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style6">
                    &nbsp; <span class="style1">Transfer account </span>
                </td>
                <td class="style7">
                    <asp:DropDownList ID="ddlTranferAccount" runat="server" Width="260px" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlTranferAccount_SelectedIndexChanged" OnLoad="ddlTranferAccount_Load">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style6">
                    &nbsp; <span class="style1">Balance</span>
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtBalanceTransfer" runat="server" ReadOnly="True" Width="260px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style6">
                    &nbsp; <span class="style1">Currency</span>
                </td>
                <td class="style7">
                    <asp:TextBox ID="txtCurrencyTransfer" runat="server" ReadOnly="True" Width="260px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <table style="width: 100%;" title="Personal information held by hedonic" align="center">
            <caption class="style3">
                Personal information held by hedonic :</caption>
            <tr>
                <td class="style5">
                    &nbsp; <span class="style1">Received account </span>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtReceivedAccount" runat="server" Width="260px" ValidationGroup="CoincideAcc"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtReceivedAccount" ForeColor="White" ValidationGroup="ErrorAmount">*</asp:RequiredFieldValidator>
                    <asp:Label ID="lblErrorCoincide" runat="server" ForeColor="White"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    &nbsp; <span class="style1">Name</span>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtNameReceived" runat="server" ReadOnly="True" Width="260px"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnGetInfo" runat="server" Text="Get information" OnClick="btnGetInfo_Click"
                        ValidationGroup="CoincideAcc" />
                </td>
            </tr>
            <tr>
                <td class="style5">
                    &nbsp; <span class="style1">Currency</span>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtCurrencyReceived" runat="server" ReadOnly="True" Width="260px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <table style="width: 100%;" title="Transaction information" align="center">
            <caption class="style3">
                Transaction information :</caption>
            <tr>
                <td class="style5">
                    &nbsp; <span class="style1">Amount</span>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtAmountTransfer" runat="server" Width="260px" ValidationGroup="ErrorAmount"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
                        ControlToValidate="txtAmountTransfer" ForeColor="White" ValidationGroup="ErrorAmount">*</asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="RangeValidator"
                        ControlToValidate="txtAmountTransfer" Type="Double" MinimumValue="10" ForeColor="White"
                        ValidationGroup="ErrorAmount" MaximumValue="500">Please,check amount transfer(10 $ &lt;= amount &lt;= 500$ )</asp:RangeValidator>
                    <asp:Label ID="lblErrorAmount" runat="server" ForeColor="White"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    &nbsp; <span class="style1">Description</span>
                </td>
                <td class="style4">
                    <asp:TextBox ID="txtDescription" runat="server" Width="260px"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="lblErrorTermCurrent" runat="server" Width="550px" 
                        ForeColor="White"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:Button ID="btnTransfer" runat="server" Text="Save" OnClick="btnTransfer_Click"
            ValidationGroup="ErrorAmount" />
    </div>
    </form>
</asp:Content>
